package com.juc.nonBlockingQueue.nonBblockingQueue4;

import java.util.Iterator;

public class Thread4A extends Thread{

	private MyService4 service;
	public Thread4A(MyService4 service) {
		super();
		this.service = service;
	}
	@Override
	public void run() {
		try {
			Iterator iterator = service.hashtable.keySet().iterator();
			while (iterator.hasNext()) {
				System.out.println(iterator.next());
				Thread.sleep(3000);
			}
			
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
